package cn.git.agent.service.impl;

import cn.git.agent.entity.UserInfo;
import cn.git.agent.mapper.UserInfoMapper;
import cn.git.agent.service.UserInfoService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description: 用户信息service实现
 * @program: bank-credit-sy
 * @author: lixuchun
 * @create: 2024-12-20
 */
@Service
public class UserInfoServiceImpl implements UserInfoService {

    @Autowired
    private UserInfoMapper userInfoMapper;

    @Override
    public List<UserInfo> selectUserInfoList(String userName) {
        QueryWrapper<UserInfo> queryWrapper = new QueryWrapper<>();
        queryWrapper.lambda().like(UserInfo::getUserName, userName);
        List<UserInfo> userInfoList = userInfoMapper.selectList(queryWrapper);
        return userInfoList;
    }
}
